<extend name="base" />

<block name="style">
<style type="text/css">
.main_info table{width:370px; height:auto;}
.main_info table td{padding:10px;}
.main_info table tr:first-child{background-color:rgb(240,245,250);}
.main_info table tr{border-bottom:#CCC 1px solid;}

.groupset{width:300px;}
</style>
</block>
<block name="md_title">
	<div class="title">密码更改</div>
   	<button class="buttonB">重置</button>
    <button class="buttonA">提交</button>
</block>

<block name="main_cont">
	<table>
	<form action="index" method="post"><input type="hidden" name="userid" value="{$userid}">
    	<input type="hidden" name="func" value="changePwd">
    	<tr><td>原密码：<input type="password" id="old_pwd" name="old_pwd" class="textA"></td></tr>
    	<tr><td>新密码：<input type="password" id="new_pwd" name="new_pwd" class="textA" placeholder="密码大于六位"></td></tr>
    	<tr><td>新密码：<input type="password" id="new_pwd1" name="new_pwd1" class="textA" placeholder="密码大于六位"></td></tr>
    </form>
	</table>
</block>

<block name="script">
<script language="javascript">
function checkInput(){
	var old_pwd	= $("#old_pwd").val();
	var new_pwd	= $("#new_pwd").val();
	var new_pwd1	= $("#new_pwd1").val();
	
	if(old_pwd + new_pwd + new_pwd1 == ""){
		alert("请将信息填写完全!");
	}else if(new_pwd != new_pwd1){
		alert("两次密码不一致,请重试!");
	}else if(new_pwd == old_pwd){
		alert("新密码与旧密码相同!");
	}else{
		return true;
	} 
}
</script>
</block>